import { request } from '../../services/request';

// 退出登录接口
export const logoutApi = async () => {
  return await request('/app/auth/logout', {
    method: 'POST',
  });
};

// 搜索工单接口
export const searchWorkOrderApi = async (params: {
  current: number;
  size: number;
  keyword?: string;
}) => {
  return await request('/app/WorkOrder/searchWorkOrder', {
    method: 'POST',
    body: JSON.stringify(params),
  });
};

// 获取批次列表接口
export const getBatchOrderListApi = async (params: {
  work_order_id: string;
}) => {
  return await request('/app/BatchOrder/getBatchOrderList', {
    method: 'POST',
    body: JSON.stringify(params),
  });
};
